from test.api.login import get_verity_code,login
from test.tools.check import check
import config
res1=get_verity_code()
uuid =res1.json().get("uuid")

res2=login(config.USERNAME,config.PASSWORD,uuid)
check(res2)
res1=get_verity_code()
uuid =res1.json().get("uuid")
res3=login(config.USERNAME,password=123456,uuid=uuid)
print(res3.text)
check(res3,code=500,msg="错误")
res1=get_verity_code()
uuid =res1.json().get("uuid")
res4=login(config.USERNAME,config.PASSWORD,uuid,code=3)
check(res4,code=500,msg="失效")